package com.mzy.basics.utils.Io;

import java.io.*;
import java.util.Properties;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author mzy
 * @Date 2022/6/15 15:59
 * @Version 1.0
 */
public class TestDemo {
    public static void main(String[] args) throws IOException {
        File file = new File( "F:\\每日脚本暂存\\2022.06月\\2022.06.15\\vi_one_version.ini");
        Properties properties = new Properties();
        InputStream is = new FileInputStream(file);
        properties.load(is);

        String version = properties.getProperty("VERSION");
        System.out.println(version);

        properties.setProperty("VERSION","1.0.6.3.3.102132131313");
        FileWriter fw = new FileWriter(file);
        properties.store(fw,"save version");
    }
}
